Optimal. Leaf size=76 \[ -\frac {\left (b x^n-a\right )^p \left (a+b x^n\right )^p \left (1-\frac {b^2 x^{2 n}}{a^2}\right )^{-p} \, _2F_1\left (-\frac {1}{2 n},-p;1-\frac {1}{2 n};\frac {b^2 x^{2 n}}{a^2}\right )}{x} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.05, antiderivative size = 76, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 3, integrand size = 24, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.125, Rules used = {366, 365, 364} \[ -\frac {\left (b x^n-a\right )^p \left (a+b x^n\right )^p \left (1-\frac {b^2 x^{2 n}}{a^2}\right )^{-p} \, _2F_1\left (-\frac {1}{2 n},-p;1-\frac {1}{2 n};\frac {b^2 x^{2 n}}{a^2}\right )}{x} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 364
Rule 365
Rule 366
Rubi steps
\begin {align*} \int \frac {\left (-a+b x^n\right )^p \left (a+b x^n\right )^p}{x^2} \, dx &=\left (\left (-a+b x^n\right )^p \left (a+b x^n\right )^p \left (-a^2+b^2 x^{2 n}\right )^{-p}\right ) \int \frac {\left (-a^2+b^2 x^{2 n}\right )^p}{x^2} \, dx\\ &=\left (\left (-a+b x^n\right )^p \left (a+b x^n\right )^p \left (1-\frac {b^2 x^{2 n}}{a^2}\right )^{-p}\right ) \int \frac {\left (1-\frac {b^2 x^{2 n}}{a^2}\right )^p}{x^2} \, dx\\ &=-\frac {\left (-a+b x^n\right )^p \left (a+b x^n\right )^p \left (1-\frac {b^2 x^{2 n}}{a^2}\right )^{-p} \, _2F_1\left (-\frac {1}{2 n},-p;1-\frac {1}{2 n};\frac {b^2 x^{2 n}}{a^2}\right )}{x}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.03, size = 78, normalized size = 1.03 \[ -\frac {\left (b x^n-a\right )^p \left (a+b x^n\right )^p \left (1-\frac {b^2 x^{2 n}}{a^2}\right )^{-p} \, _2F_1\left (-\frac {1}{2 n},-p;1-\frac {1}{2 n};\frac {b^2 x^{2 n}}{a^2}\right )}{x} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [F] time = 0.88, size = 0, normalized size = 0.00 \[ {\rm integral}\left (\frac {{\left (b x^{n} + a\right )}^{p} {\left (b x^{n} - a\right )}^{p}}{x^{2}}, x\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {{\left (b x^{n} + a\right )}^{p} {\left (b x^{n} - a\right )}^{p}}{x^{2}}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [F] time = 1.01, size = 0, normalized size = 0.00 \[ \int \frac {\left (b \,x^{n}+a \right )^{p} \left (b \,x^{n}-a \right )^{p}}{x^{2}}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {{\left (b x^{n} + a\right )}^{p} {\left (b x^{n} - a\right )}^{p}}{x^{2}}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.01 \[ \int \frac {{\left (a+b\,x^n\right )}^p\,{\left (b\,x^n-a\right )}^p}{x^2} \,d x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {\left (- a + b x^{n}\right )^{p} \left (a + b x^{n}\right )^{p}}{x^{2}}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________